<!--%import("../../../member/skins/default/js/member.js")-->
<!--%import("../../../member/skins/default/css/default.css")-->

<div id="memberModule">
    <h1>{$member_info->member_srl == $logged_info->member_srl ? $lang->my_profile : $lang->user_profile}</h1>
    <span>
        <span class="avatar" style="height:{$member_config->profile_image_max_height}px">
        <!--@if($member_info->profile_image->src)-->
        <img src="{$member_info->profile_image->src}" border="0" alt="{$member_info->user_name}" />
            <!--@if($member_info->member_srl == $logged_info->member_srl)-->
            <!--%import("filter/delete_profile_image.xml")-->
            <form id="fo_insert_member" action="{getUrl()}" method="post" onsubmit="return procFilter(this, modify_info)">
            <input type="hidden" name="member_srl" value="{$member_info->member_srl}" />
            <input type="hidden" name="module" value="member" />
            <input type="hidden" name="act" value="" />
            <a href="#" onclick="doDeleteProfileImage({$member_info->member_srl});return false;" class="button"><span>{$lang->cmd_delete}</span></a>
            </form>
            <!--@end-->
        <!--@else-->
            <!--@if($member_info->member_srl == $logged_info->member_srl)-->
            <form action="./" method="post" enctype="multipart/form-data" target="tmp_upload_iframe">
            <input type="hidden" name="member_srl" value="{$member_info->member_srl}" />
            <input type="hidden" name="module" value="member" />
            <input type="hidden" name="act" value="procMemberInsertProfileImage" />
                <input type="file" name="profile_image" value="" />
                <span class="button"><input type="submit" value="{$lang->upload}" /></span>
            </form>
            <p>{$lang->profile_image_max_width} : {$member_config->profile_image_max_width}px, {$lang->profile_image_max_height} : {$member_config->profile_image_max_height}px</p>
            <iframe id="tmp_upload_iframe" name="tmp_upload_iframe" style="display:none;width:1px;height:1px;position:absolute;top:-10px;left:-10px"></iframe>
            <!--@end-->
        <!--@end-->
        </span>
    </span>

    <div class="form-row">
        <span class="label">{$lang->user_name}</span>
        <span>{htmlspecialchars($member_info->user_name)}</span>
    </div>
    <!--@if($member_info->member_srl == $logged_info->member_srl)-->
    <div class="form-row">
        <span class="label">{$lang->password}</span>
        <span>*******</span>
        <a class="button_link" href="{getUrl('act','dispMemberModifyPassword','member_srl','')}">{$lang->cmd_modify_member_password}</a>
    </div>
    <div class="form-row">
        <span class="label">{$lang->email_address}</span>
        <span>{htmlspecialchars($member_info->email_address)}</span>
        <a class="button_link" href="{getUrl('act','dispMemberModifyInfo','member_srl','')}">{$lang->cmd_modify_email}</a>
    </div>
    <!--@end-->

    <table cellspacing="0" class="rowTable">
    <!--@if($extend_form_list)-->
    <tr>
        <th class="title" colspan="2"><div>{$lang->member_extend_info}</div></th>
    </tr>
    {@ $dummy_chk = 0 }
    <!--@foreach($extend_form_list as $key => $val)-->
    <tr <!--@if($dummy_chk==0)-->class="first-child" {@ $dummy_chk = 1; }<!--@end-->>
        <th>
            <div>
                {htmlspecialchars($val->column_title)}
            </div>
        </th>
        <td>
            <!--@if($val->is_private)-->
                <span class="privateItem">{$lang->private}</span>
            <!--@else--> 
                <!--@if($val->column_type=='tel' && $val->value[0] && $val->value[1] && $val->value[2])-->
                    {htmlspecialchars($val->value[0])} 
                        <!--@if($val->value[1])-->-<!--@end-->
                    {htmlspecialchars($val->value[1])} 
                        <!--@if($val->value[2])-->-<!--@end-->
                    {htmlspecialchars($val->value[2])}
                <!--@elseif($val->column_type=='kr_zip')-->
                    {htmlspecialchars($val->value[0])}<!--@if($val->value[1]&&$val->value[0])--><br /><!--@end-->{htmlspecialchars($val->value[1])}
                <!--@elseif($val->column_type=='checkbox' && is_array($val->value))-->
                    {htmlspecialchars(implode(", ",$val->value))}&nbsp;
                <!--@elseif($val->column_type=='date' && $val->value)-->
                    {zdate($val->value, "Y-m-d")}&nbsp;
                <!--@else-->
                    {nl2br(htmlspecialchars($val->value))}&nbsp;
                <!--@end-->
            <!--@end--> 
        </td>
    </tr>
    <!--@end-->
    <!--@end-->
    <tr>
        <th colspan="2" class="button">
            <a href="{getUrl('act','','member_srl','')}" class="button"><span>{$lang->cmd_back}</span></a>
    </tr>
    </table>
</div>    